
package com.kweative.cluster;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author henrik
 */
public class ClusterNode implements Serializable {
    private Date created;
    private int id = 1;

    public ClusterNode() {
        created = new Date();
    }

    public Date getCreated() {
        return created;
    }

    public boolean equals(ClusterNode obj) {
        return obj.getCreated().getTime() == this.getCreated().getTime();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Cluster.Node[" + id + "]";
    }

}
